package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjVideoContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 产品视频内容表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-07-31
 */
@Repository
public interface ZjVideoContentMapper extends BaseMapper<ZjVideoContent> {

    /**
     * 根据视频ID删除所有
     * @param videoId 视频ID
     * @return
     */
    int deleteByVideoId(Long videoId);

    /**
     * 根据视频ID删除所有视频内容
     * @param videoIdList 视频ID集合
     * @return
     */
    int deleteByVideoIds(@Param("videoIdList") List<Long> videoIdList);

    /**
     * 根据视频ID获取视频信息
     * @param videoId 视频ID
     * @return
     */
    List<String> getImageByVidelId(Long videoId);


}
